package com.twotwoshop.service.user.controller;


import com.twotwoshop.domin.common.dtos.ResponseResult;
import com.twotwoshop.service.user.service.IFanService;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 * APP用户粉丝信息表 前端控制器
 * </p>
 *
 * @author 王帅
 * @since 2024-12-20
 */
@RestController
@RequestMapping("/user/fans")
@Slf4j
@RequiredArgsConstructor
public class FanController {

    private final IFanService fanService;


    /**
     * 获取粉丝列表
     * @return
     */
    @GetMapping("/list")  // 修改为正确的用户服务API路径
    ResponseResult listUserById(){

        log.info("listFansUserById......");

        return fanService.listFansUserById();
    }

}
